home *** CD-ROM | disk | FTP | other *** search
- CBR0
- Yet another CmpByteRun0 algorithm compressor
- Version 1.0
- Copyright 1992 Bilbo the first of Hypenosis
-
-
-
- License/Disclaimer
- ------------------
-
- This library may be freely distributed with the XPK compression package,
- as long as it is kept in its original, complete, and unmodified form. It
- may be distributed by itself but not in a commercial package of any kind
- without my permission.
-
- This program is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
- or FITNESS FOR A PARTICULAR PURPOSE.
-
-
- Description
- -----------
-
- xpkCBR0.library is a standard XPK sublibrary implementing the very simple
- cmp byte run 0 compression algorithm. The same algorithm is used on
- compressed IFF-ILBM files. It is well known that this algorithm is only
- efficient on data containing repeating equal bytes. This means that ASCII
- files or (not compressed) picture files will be compressed well, but
- executable files , sound data files, encrypted files (or other white noise
- data) will be compressed only approx. 3%.
-
- Following is a table briefly listing some comparative statistics for CBR0
- These were generated by xBench on the standard XPK benchmark system
- (A3000/25 with SCRAM, using the AmigaVision executable as data). Note that
- memory needs don't include xpkmaster.library's buffers.
-
- Method Packing Unpacking Packing Unpacking Compression
- Memory Memory Speed Speed Ratio
- ------ ------- --------- ------- --------- -----------
-
- RLEN ??? K ??? K 139 K/s 526 K/s 4.1%
-
- CBR0 0 K 0 K 410 K/s 1918 K/s 3.1%
-
- I tried to compare both libraries (CBR & RLEN) against each other on
- some really long ASCII files (up to 500k), but I don't write those
- compression results here for I can't know if all of you have those files to
- check my results. The speed factors given below are representative for most
- files but compression factor differs on both libraries depending on the
- files. Sometimes RLEN obtains better results, sometimes CBR0. You better
- compare them on your own and decide then which one you prefer. But always
- keep in mind that my CBR0 is over 3 times faster on decompression than RLEN.
-
- xpkCBR0.library is of course:
-
- · written 100% in 68000 assembler using DevPac V3.02,
- · reentrant,
- · pc-relative (except for resident structure used by system for injection),
- · some bytes shorter than U.D.Mueller's RLEN,
- · 2.9 times faster on compression, 3.6 times faster on decompression
- compared to RLEN both used on file AmigaVision
- · written by Bilbo the first of Hypenosis (this fact should convince you)
-
-
- Version History
- ---------------
-
- 1.0 First public release.
- No known bugs.
-
-
-
- Contact Address
- ---------------
-
- (xpk)NONE:-), sorry, my account has expired :-)
- I will ask a friend of mine if I can use his account for complaints.
-
-